package com.zhxy.gps.terminal.message;

import com.zhxy.gis.Location;

public class LocationMessage extends AbstractMessage {
	
	private static final long serialVersionUID = -8111713115559300301L;
	
	protected Location location;
	
	public LocationMessage() {
		this(null);
	}

	public LocationMessage(Location location) {
		name = "location";
		this.location = location;
	}

	public Location getLocation() {
		return location;
	}

	@Override
	public boolean hasResponse() {
		return false;
	}

	@Override
	public String toString() {
		return "LocationMessage [location=" + location + "]";
	}
}
